import request from "@/util/request";
// 请求搜索页面数据方法
export const getSearchApi = (openId: string) => {
    return request.get<any, SearchNs.ISearchDate>('/search/indexaction', {
        params: { openId }
    })
}
// 点击搜索按钮跳转
export const getSearchClickApi = (keyword: string, openId: string) => {
    return request.post<any, SearchNs.ISearchClickDate>('/search/addhistoryaction', {
        keyword, openId
    })
}
// 搜索页面点击清除历史搜素方法
export const getSearchClickClearApi = (openId: string) => {
    return request.post<any, SearchNs.ISearchClickClearDate>('/search/clearhistoryAction', {
        openId
    })
}
// 点击搜索跳转后列表页面数据
export const getSearchClickListApi = (keyword: string, order: string) => {
    return request.get<any, SearchNs.ISearchClickListDate>('/search/helperaction', {
        params: {
            keyword, order
        }
    })
}
